import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-10-19
 * 9:58
 */
public class Test
{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int m=sc.nextInt();
        int l=sc.nextInt();
        int[][] a=new int[n][m];
        int[][] b=new int[m][l];
        int[][] c=new int[n][l];
        String s=sc.nextLine();
        for (int i = 0; i < n; i++) {        //建立数组a
            String s1=sc.nextLine();
            String[] ss=s1.split(" ");
            for (int j = 0; j < m; j++) {
                int k=Integer.parseInt(ss[j]);
                a[i][j]=k;
            }
        }

        for (int i = 0; i < m; i++) {    //建立数组b
            String s1=sc.nextLine();
            String[] ss=s1.split(" ");
            for (int j = 0; j < l; j++) {
                int k=Integer.parseInt(ss[j]);
                b[i][j]=k;
            }
        }
        int k=0;
        while (k<n){
            for (int i = 0; i <l ; i++) {
                int sum=0;
                for (int j = 0; j <m; j++) {
                    sum+=a[k][j]*b[j][i];
                }
                c[k][i]=sum;
                if(i==l-1){
                    System.out.print(c[k][i]);
                }else {
                    System.out.print(c[k][i]+" ");
                }
            }
            System.out.println();
            k++;
        }

    }
}
